package models;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: Артемка
 * Date: 15.12.13
 * Time: 17:28
 * To change this template use File | Settings | File Templates.
 */
public class Group implements Serializable {
    private int id;
    private String name;
    private String faculty;

   /* public Group(int id, String name, String faculty)     {
        this.id=id;
        this.name=name;
        this.faculty=faculty;
    }          */

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return this.id;
    }

    public void setGroupName(String name) {
        this.name = name;
    }

    public String getGroupName() {
        return this.name;
    }

    public void setFaculty(String faculty) {
        this.faculty = faculty;
    }

    public String getFaculty() {
        return this.faculty;
    }

    @Override
    public boolean equals(Object object) {
        if (object != null) {
            Group gr = (Group) object;
            if (this.getGroupName().equals(gr.getGroupName()) && this.getFaculty().equals(gr.getFaculty())) {
                return true;
            } else
                return false;
        } else
            return false;
    }


}
